title: general programming issue on classes
body: <p>let's say i want to create a movie database software.</p>
  
  <p>i need a class Actor that will have attribute as name, surname, dob, awards, and it should also have an array of "movie" object.</p>
  
  <p>i also need the class Movie, that will have attribute as title, duration, year, but it should also have an array of "actor" object. to represent the cast of the movie.</p>
  
  <p>Actor object need a list of all the movie done by that actor, just as the movie object need a list of all the actors that played in it. 
  that gets quite messy cause it's a class containing another one and viceversa, the compiler get stuck.</p>
  
  <pre><code>which would be the right way to represent this situation? 
  </code></pre>