test code for ex7 (yay it works)