Implementations with lists and maps.