first attempt at lab4