complete 5.8 and Lab 6