assignment 1 --- 6th commit

Seems to work correctly, though the cross avg is still left to be
written. additional unit testing needed overall.