use `define_method` instead of class variables
experiment with freezing things