Changed @challenge to use @challenge.period in user methods