Is this not failing for you? Your `end`s and `elses` are mismatched.