added c-file for a simple client