Evolution of galaxies - One-zone model with a birth-rate stellar function depending on gas density and temperature