Finished Dependency class and Register() method in IoC