Making progress - just need to figure out why the final values are
coming out weird