Adding object in class variable declarations