Implement end1 code to pass tests.