Using colour-magnitude-diagrams to study the evolution of young stellar populations