solved ex. 2.27