substitute hash access with method call in example
make example more rubish