The basic idea is as follows: