Solution for Homework 2.3