Created the bases java classes.