Return multiple values from class method