added CPP version of Motors class