Implemented the submit answer functionality