collect methods name in an array

Please enter the commit message for your changes. Lines starting