nil should be written as []
clean solution to be submitted later