finishing up with main functionality and starting hibernate