Created variable total

created variable total