implement Task::getDependencies & Task::setDependencies