working on exercises 1.6 & 1.7