Solutions for assignment #6