Fix minor bug by adding constructor to Task class