uhmm but that int--return type might be a problem in this case...
No denying that it is also the best way to solve such kind of problem though..