preliminary high level code example added