creating function arguments in methoddeclaration class