some code I did while learning c