The indentation is off here. should be like this  (it helps telling the way the decision tree is going to go):

```ruby
title = gets
movie = Api.search_by_title(title)
if movie != nil
  puts "Found: #{movie.title}. Score: #{movie.score}"
  movie
else
  puts "sorry try again"
end
```