Added classes (MVC - style) with business logic
Fixed date converting. stringToDate became convertToDate