An organic compound P on reduction gives compound Q which on reaction with chloroform and potassium hydroxide forms R. The compound R on catalytic reduction gives N-methylailine. The compound P is
A. nitrobenzene
B. nitromethane
C. methylamine
D. aniline