Added underscore ans a dependency and exteded the Scale class a bit. Marios' function working but need to write some tests against it to make sure it is giving the expected results.