Created prototypes for functions in Task.ts
More prototype functions.