added answers and plot for perfect detector question