version 3 of dino exercise

```
File.open(filename, 'w') do |f|
  f << to_json
end