Initialize object attribute after class attribute adding