createBalloon function and unit test.