Solutions for Homework 4.