homework for RDBMS