prob 5b plot