restructure directories

restructured using hibernate as a model