と、使うぶんには関係ないけど、3行目の
local context state line
って何のためにあるの?