Changed method to use Collections.sort() as supposed
Comments: Task Factory should just be overloaded constructors for Task Class