Implemented bubbleUp

Not sure if it works fine yet.