rearranged code structure for different prison
built hierarchical structure for prisons