there's working code above as well, the math is wrong on froggies code.