Fix it so that it will? Are you serious?

Given the problems that you noted and the implementation you provided... I dont see where you have issues. You have provided a Person class, but nothing related to how you implement their usage in terms of collections and maps. Data structures would be used by your business logic, models and such, code for which you did not manage to include. As to the code submitted, there is nothing wrong as such. So... what exactly are you expecting anyone to fix?