solve exercises 20.20 - 20.21