added motorcontroller class