Fix code examples in old post