implemented ex 5.2 test file
fixed remove function in sample map impl, rebuilds list properly now