changed var names in code example to make it more clear