Գրեք սա: Patterns for resource management