All codes done in IIIT