Better to use decorators so that we can avoid repetition of code