some code for learning c