finished rough draft for calculating Harris cost