Sorted code for the  first question
Finished answers system