Added rhyme solution
Swapped ints for doubles
Swapped intermediate values from int to double