added DI and view rendering example