2nd iteration, refactored to using times method