Program codes for ea871 class