Simple implementation with hardcoded patterns