exercise 3-1: simple sum/1 and sum/2