add implementation of the `Insert` method