My attempt at learning C