Moved Task class def to its own file