Add some desing patterns.