Added barebones Java code