added sample java