solved up to exercise 5 from obejcts