added the small c-file. This is the short Version, just straight forward