Added solution to homework number 3.