Using with OOP class