Example of dynamically create method/func