Here an example of constructor, you must pass the UART interface and (if you want, but it's reccomended) the AUX pin, M0 and M1.