Update tutorial for new java code