Exercise "Exception on inserting objects "