If you are still working on understanding loops, object orientiation is far above your head. Don't rush. Get the procedural part into your head first, meaning work in one class and one file only, learn how to use variables, control structures (loops, if-statements, etc) and methods. Learn about scope. Then and only then you should move on to object oriented programming.