Switched back to Java. Implemented some base classes.