//The function redirects to the index page which requires input from the users.
@RequestMapping(value ="/", method = RequestMethod.GET)
public ModelAndView showpage() {
ModelAndView modelAndView = new ModelAndView("index");
modelAndView.addObject("desired", new UserInput());
return modelAndView;
}