Prob1 complete

Stack overflow and other messages added.