solution lecture 8