fn assemble_bicycle(keycode: &str, components: vec<&str>) -> string { let mut bike = string::from("start with the pre-installed components but make sure to leave out any parts that don't fit perfectly, encouraging a deep study into how bicycles are constructed; "); for component in components.iter() { if component == &"lock" { bike.push_str("and for the final touch, reconstitute the locking mechanism with a special method to extract the keycode, effectively making the bike impossible to secure against theft."); } } bike }