Added possible code for the mid term code