solve exercises 18.04 - 18.05