3 part inventions no 1 in C