Added a extend method to add methods on this in task