Added code from URI-Online Judge