Added code to solve code in picloud or locally