Finished hints implementation. Added unit tests.