OOP based stack data structure