Implemented imperative style dsl example