Update README.md

implemented function z and fixed bug y