Trying to learn c