added main context to example, working on #33