My solution..