Extraction of BarberSystem to showcase programming techniques