Rendering Code restructured to use interface