What were the various classes into which colonial society was divided?