What are the three main parts of a ship?