Create motor .cpp file