Implemented insert method