Update Task.h -- Refactoring and change of class Task