A very weird has_many function