YOUNGSTERS took time out of the classroom to learn about locomotives.