Create Lab8 problem 6