Set values in the constructor method