added Task class and set attributes