arduino example with more functions