getting medianRange working properly.  basic foundation setup