implemented dictionary score & fixed issue #2