Implemented solution