I just explained the concept , and wrote that pseudo code, u r right ;-)( it was left to the reader )