before applying design patterns and before my final exam