Implemented Solution