added sample for mixing imperative and declarative style