I have issue with this task. I dont know how to make it correctly

Make Invoice class with:
• List of purchased goods - associative array (map) with Stock key object and its price value
• methods...