Demo ruby code