add decorator
Merge pull request #1 from folieadrien/refactor

First refactor session