First attempt to solving exercises