Add logic to remove dups in app, Problem 2.1
Fix linked list semantics.