Add sample.java for Cloud Computing