Added solutions to homework #6.