Add codes 11/21

almost finish phase 2