Implemented all solutions