make the barber work with new classes