Pattern design