Added basic function to determine type of metal