getting my calculation function entered. Still in progress...
finished step controller function and adding some comments