Completed 2nd part of the 1st exercise for objects and doms