Added the structure to java classes