diff --git a/crates/ripr/examples/sample/src/lib.rs b/crates/ripr/examples/sample/src/lib.rs
index 0000000..1111111 100644
--- a/crates/ripr/examples/sample/src/lib.rs
+++ b/crates/ripr/examples/sample/src/lib.rs
@@ -5,7 +5,7 @@ pub struct Quote {
 }
 
 pub fn price(amount: i32, discount_threshold: i32) -> Quote {
+    if amount >= discount_threshold {
         Quote { total: amount - 100, discount_applied: true }
     } else {
         Quote { total: amount, discount_applied: false }
@@ -18,5 +18,5 @@ pub enum InvoiceError {
 }
 
 pub fn validate_currency(currency: &str) -> Result<(), InvoiceError> {
+    if currency == "USD" { Ok(()) } else { Err(InvoiceError::InvalidCurrency) }
 }
