cons, head, tail and empty added. all the tests passed