A prototype for risk prevention and management in working environments