implemented custom initializer and initializer off Task class