Cursor control added and example 2 completed