exercise 8 of plsql done