role of pattern making in foundry