Added the getter() and setter() for the Ship.java