Spartz code sample