What is the basic working principle of a gearbox? How is energy converted in it