old examples
works for app, max, binaryTreeDepth