Change return type to void in Task.java