started writing motor library