Pergunta de entrevista da empresa UKG

Fix some code that involved OOP concepts.