Variable class constructor and destructor implemented