mpce -31 solved assignment