implemented ParseChallenge method