add constructor for creating combined classes