Introduction to Dirac structures and Generalized Geometry. Part I and II