Pregunta de entrevista de UKG

Fix some code that involved OOP concepts.