yeah i know you're right and i also know using a class or struct is a possible solution but i want help on how to use a function for the same solution.. that's what the question is really all about