2 part inventions no 1 in C