solutions exercise2