Sample code for Jcup