Working alternate method for getting classes- using hiera cli