solve exercises 10.1 - 10.3