Solutions for lab 3