Added accessor methods to Ship.java