added predecessor and successor demos