4 problems update

the codes are copied directly from htp://soj.me, so these codes have no
comments. BUT, they are coded by ME!