exercise 7 of plsql done