compiling rehan's code