Solutions for assignment #8