integrated the first two answers in to core.clj
initial shot at problem 3
Trying out unit tests