Done exercises 3.61 and 3.62 (cheated 3.60)