Imperative Programming practice