chatper6&7 advanced controller test