Amalgamate classes into four core classes