solving exercises