Self Balancing Robot

Im working for a project called Self Balancing Robot by using Arduino but im not getting right code. Im using parts like

That's never been done. It's impossible. Give it up now. Do NOT even bother using google.

PaulS:
That's never been done. It's impossible. Give it up now. Do NOT even bother using google.

wow