Implemented basic insert()