A new internal phone system is being installed in an office block that is to be the headquarters of a utility company. A 3-digit extension will be allocated to each office in the block. How many extensions are possible if (i) There is no restriction? (ii) The digit 0 may not be used. (iii) The number may not begin or end with a zero. (iv) The digits must all be different.