Various exercises from C books