added noted regarding lack of overall optimization in the example; Tests to come later