A study of a three species food chain