c code from Launchcode