Made a Task class and created the instance fields in it