my attempt to learn C