Update source code

Add the required setter & getter from and new function from controller
and add step count from view.