- Added parentId to Department class in order to build a hierarchical structure.
- Added calculation of retained credits traversing and summing up credits from bottom to top.