Material management using the computer