finished first design for automatic rating algorithm