Mathematical machines: from history to mathematics classroom