Changed private fields to protected. As well changed 'stateShip'