Pattern formation in a reaction-diffusion system