Update TaskFactory.java