new changes for formatting and added Problem3