- Updated the example code with actions