this is a simple two chain application as an introduction to python