Set clases based on bits