write ship class
add allObjects method