Gene's solution for #2!