Implemented bubble
Refactored