Formation And Dynamical Evolution Of Planetary Systems