a java example for Scaffold