Use case class apply constructor when adding a task
Tidyup indentation