He was charged with and tried for two offences under Section 5(1) (a) of the Act for habitually accepting or obtaining illegal gratification and under Section 5(1)(d) for receiving illegal gratification from Pal Singh