Updated variables in prob8 for clarity.