7.1. Algorithm trains