updated syntax of 3 problems