Just started learning C, here will go the changes.