controller for 2nd iteration
model logic class 2nd iteration