Implemented pass by reference in Library and Model classes.