created new class for tasks
also can add tasks to a list of tasks