offset updater added
Merge https://github.com/willetsely/cosc301_proj03