# 2b: list logic