Implemented insert funcionality