added solution lecture 9