Filled in the add case methods in the task class.