implement pset1 in c# to get algorithm down before learning lisp