Lab 5 solutions