add preview studying code.