Added Ninject library. Refactored code.