Some of lab 7, output for lab 6