Adding delete command for lists to the problem