add initial rating logic and CLI executable (currently for testing)