solved exercises 14, 15, 16, 17 and 18.