Solutions for problem set 5.