rehan's full code