How do I store those X and Y values in the object in the list? I will put the class after my main code too