Nokia 5110 and rotary encoder

Hello all,

I would like some advice on creating a menu for Nokia 5110 screen with a rotary encoder.
I'm looking for a simple template.
My project is using a servo that I have modify for continuous rotation and I've added a line following sensor to create a counter. Everything is fine but now I want to add a menu where I want to select 2 rotations one menu option in rotate 12 time and stop the other is 24.
I tried to modify educs.tv schetch but it get messy and I can't do it.
I think a simple template nothing fancy should help me as reference.