Starting work on iterative outliers code
Using mutable states and double assignment