linearScore function

Homework 2, linearScore function