problem #7

completed problem #7 and started 8