removed creation of attribute in constructor method.