modifiers of parameters in Task class were modified