Can look at methods.
Added the original c code.