Require 'ostruct' before using it