creating a proper class