working on prob 6.7 added konstantinos stuff