Code works for 1-10