update Task.java content

Mutators are added in