basic application with a decorator