Code from C for Dummies book