Implemented all the questions