solutions for session 10 exercises