Added the function setNewGlass
Flushed out the loop added some fund to define