Added solutions for problems: 2, 3, 29, 30, 35, 39. Updated gitignore.