Can you develop a Python class to calculate the cross entropy loss between two probability distributions?
import numpy as np

class CrossEntropy:
    def __init__(self):
        pass
    
    def loss(self, p, q):
        return - np.sum(p * np.log(q))