added variable to the class constructor