Pseudo code of the inserting was added