text solution to 5
problem 6 blamo ruby
finished 7 algebraically