Pegasystems (PEGA) investors are having a great year. 

Shares of the tech hardware and services provider have skyrocketed 28% this year, dusting the 5% gain for the Nasdaq Composite . Pegasystems founder and CEO Alan Trefler tells TheStreet the market is rewarding the company for being in the right place, at the right now. For example, the company -- which Trefler founded in 1983 -- is a player in artificial intelligence that helps improve the workflow of businesses.

Trefler also discussed the need for tech companies to protect customer data and how cyber threats remain a real issue. 

More from Video

Behind Your Barbie: The History of Mattel

Behind Your Barbie: The History of Mattel

Flying Into the Future: A Boeing Timeline

Flying Into the Future: A Boeing Timeline

CV Sciences CEO on the Future of CBD in Healthcare

CV Sciences CEO on the Future of CBD in Healthcare

Overwhelmed? Jim Cramer Breaks Down What You Must Watch This Week

Overwhelmed? Jim Cramer Breaks Down What You Must Watch This Week

Jim Cramer Gives Investors Advice on Market Volatility

Jim Cramer Gives Investors Advice on Market Volatility