ex7 - more variables & some math