added code for testing with brown corpus