Update README.md

add example "working with functional classes"