solve homework 2.3