understand how to construct list using cons