adds a number to a list