Multiples function

Clunky solution.