It has five clauses of which the first three run as follows: "(a) if he habitually accepts or obtains or agrees to accept or attempts to obtain from any person for himself or for any other person, any gratification (other than legal remuneration) as a motive or reward such as is mentioned in section 161 of the Indian Penal Code, or "(b) if he habitually accepts or obtains or agrees to accept or attempts to obtain for himself or for any other person, any valuable thing without consideration or 801 for a consideration which he knows to be inadequate, from any person whom he knows to have been, or to be, or to be likely to be concerned in any proceeding or business transacted or about to be transacted by him, or having any connection with the official functions of himself or of any public servant to whom he is subordinate, or from any person whom he knows to be interested in or related to the person so concerned, or "(c) if he dishonestly or fraudulently misappropriates or otherwise converts for his own use any property entrusted to him or under his control as a public servant or allows any other person so to do, or" Sub section (2) of section 5 of the 1947 Act provides for punishment in respect of an offence under sub section (1) thereof, while section 6 creates a bar against any court taking cognizance of an offence under sections 161, 164 and 165 of the Code or sub section (2) of section 5 of the 1947 Act unless previous sanction of certain authorities has been obtained in that behalf.