header for handling lists of natural numbers (in particular useful for problems 5 and 6)