Initial commit of ex2 in c