Added two java classes. Need to make it better.