Make challenge creating function
Merge pull request #13 from shield-9/challenge-func

Enclose challenge creating codes