added code segment containing variable assignment