Solutions to the object oriented homework assignment