created file

again, copied file. reformatted it a little.
we should go through comment (thus maybe learning how it works) and then do anything needed to change it to c++