Implemented basic rendering method in Main file