run_function method added to Capability Class