SMS dit: Statistical mechanics: principles and selected applications