module DbClustering module Models class Cluster attr_accessor :points def initialize @points = [] end def add(point) @points << point point.cluster = self end end end end