How to use methods in an outside class with a single parameter.