codes for learn scale