Finished Locomotive class, passes tests