You will transform the program that was written to play a letter guessing game (project 2) to an object-oriented program.general requirements for project 3rewrite the program from project 2 using at least one class "game", which has three member functions.all member functions will be defined asfollows:othe function prototype appears in the classdefinitionocomment describing what the function does appears directly under function prototype formal variable names are not used in any prototype the functions definition appears after themainthe first member functionis a custom constructor (to set the member variables), which receives two parameters: the first parameter is a character (the character to be guessed in that game); and the second parameter is an integer that specifies the maximum number of attempts that can be made in thegame.(the number of attempts ranges between 4 and 7 -inclusive-, this number is randomly generated in the main function using the "rand" function, you have to seed the random number generator).