set up hibernate, worked on model classes