beginning code for ex48