Splitting into classes