implemeting pointer ptr_t(k)