Example code using chips