create_challenge node function