class structure of strategy pattern in computer logic