Pattern Detection

Just starting.