Getting rid of random numbers and introducing update method to Genie Class.