Resolving problems with lists (not finished yet)