Implementing simple cursor adapter