Compiled motor.cpp successfully

need to test it on EV3