ModeShapeExample.java  updated