Create the variable discount, that has a local scope inside the apply_discount function.

Make sure to type discount.