changed the second method from class_eval to use define_method. Also, changes the type in the array to be a symbol using column_type.to_sym