class constructor added