int classCount(RoomScheme r, int code){
        int count = 0;
        for (Subject[] room : r.rooms) {
            for (int j = 0; j<r.rooms[0].length; j++) {
                if (room[j].getCode() == code) {
                    count ++;
                }
            }
        } return count;
    }