Coded vars for second function

Second function vars coded