Solutions for lab 6