moved stoch and cycle function to equipment class