Created Task object to encapsulate tasks