some exercises from http://c.learncodethehardway.org/