fixing up end-of-topic exercises