Αποστολή με SMS: On the formation of dwarf galaxies and stellar haloes