this is simple c code for learning