Changed method parameter to an integer, bug fixed so that it actually works for numbers > 12