implementing function, work in progress
code now compiles, but test fails
all tests pass, cons '(a) '(1 2) issue need fixing