oops, meant to type "double" here
Made it compile, but it doesn't work yet