Not sure why float was used, but now tests are passing