Came up with a better way of composing a method together n times