Testing Object Oriented function