solution ruby0 ex3