required java file from sample code