I am very new to OOP, someone told me that instead of doing these commands, I could simply create a method to perform these commands, thus making my code look more like OOP.