Elements of Mining