revised solution to p08