classify solutions by categories