convert secex step 7 to use Click lib