Fleshed out the Task class