Fundamentals of hard and soft materials