added solution for double out..first portion of problem 5 on the final