working on add_attempt directive, remembering how to write custom directives