Added a second version of prob 8