solve exercises 50.01