Chapter 7

ajd chapter 7
Good use of a library constant, Math.pow may be a tad overkill