readme: fix incorrect code in Extending section