added homework solution