ex 13.5.12 - bless the stdlib!