added cursor class