completed (?) the 2nd assignmnet
partial solution to the 3rd C assignment