assign3.C