ActiveRecord associations work now + added methods to measurements