Implemented some of the methods in the class Ship