adding method insert(k)