Refactor given codes to OOP best practice.
https://chat.openai.com/g/g-HoqqAkDJP-refactor-to-oop-saysay-ai