n pieces problem classes made