modified data fetching using OOP approach