fixes spacing issue and uses to_s and attr_accessor