task class properties and constructor added