homework assignment solution