Lab 8 Fixed cursor intialization