Finsihed Putting it in c++ xD