Learning how to use cons cells to form a list