implemented most of class ZestSimpleLoop