Added connection.c

Added connection.c