implemented list_remove() and fixed list_print