complete first part of ex7
completed ex7