Materials Similar to Stars and statistical physics: A teaching experience