Update connection.c

added example