working on initialize and render functions; some-what working