CALCULATING THE PROPERTIES OF MATERIALS FROM SCRATCH