adde sample codes.