Port code from testing/step4 so that it now emits 2 items