How is a star formed step by step ?