Initial work on c program