Changed class def to use slots instead of representation