adding c method
Merge branch 'master' of https://github.com/prga/TGM