basic rendering engine implemented