Working code for Inayat and Rinki