insert and get functions is implemented