added pseudocode for lighting