refactored 2 of the main methods in the application controller. Moved lots of the logic that defines the dates to the tasks model and now call them from there. Wrote tests and comments accordingly.