fn my_reward(response: String) -> Float {
    let words = str_len(response)
    let score = 0.0
    if words > 20 {
        let score = 0.5
    } else {
        let score = 0.1
    }
    return score
}

fn main() {
    let r1 = my_reward("hello world this is a test")
    println("Reward: " + r1)
    let r2 = my_reward("short")
    println("Reward: " + r2)
}
