Wrote lab 4