Finished prob 6