Simple solution implementing the recognized pattern