ICP1: exercises series 3: 1-3