class add works