Simpler #16 using built-in method.