I have a data structure like below, How do I append new values based on the name. Like, if input name is Sam and amount is 200. it should add to Sam\'s list and also if Sam alre