Refactoring. Added Section class.
Adding test suite.