Updated Problem2 from Lab 2