merged exercise2