Adding solution 3