Learning to program in C