Completed Problem B