added patterns library to be integrated later