Modified Task Class added default methods

and variables