add constructor for instance