finalized sql ex2