Removed unnecessary methods and variables from Task.java