pieces class