use ES6 classes to create actions that share common behavior; in this case, logging