For java testing of learning exampls