Parsing error in no error script.

Hello. I am getting parsing error no idea why i don’t see any problems in my code. Someone tell me why its showing me it here is the code:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class CannonRateOfFireUpgr : MonoBehaviour {

	private Databasestorage database;
	private int Cost = 2;
	public GameObject Cannon1;
	public GameObject Cannon2;

	// Use this for initialization
	void increaserateoffire () {
	
		database = GameObject.Find ("Main Camera").GetComponent<Databasestorage> ();
		Cannon1 = GameObject.Find ("Cylinder001").GetComponent<TurretShooting> ();
		Cannon2 = GameObject.Find ("Cylinder002").GetComponent<TurretShooting> ();
		//Cannon3 = GameObject.Find ("Cylinder001").GetComponent<TurretShooting> ();
		//Cannon4 = GameObject.Find ("Cylinder001").GetComponent<TurretShooting> ();

		if (Cannon1.GetComponent<TurretShooting>().firerate == 0.1f && Cannon2.GetComponent<TurretShooting>().firerate == 0.1f) {

			transform.Find ("CannonRateOfFireText").GetComponent<Text> ().text = "Cannon Rate Of Fire

MAX UPGRADED";

		} else {

			if (database.money > Cost) {
				
				database.money -= Cost;
				Cannon1.GetComponent<TurretShooting> ().firerate -= 0.1f;
				Cannon2.GetComponent<TurretShooting> ().firerate -= 0.1f;
				//Cannon3.GetComponent<TurretShooting>().firerate -= 0.1f;
				//Cannon4.GetComponent<TurretShooting>().firerate -= 0.1f;
				Cost += 12;
				transform.Find ("CannonRateOfFireText").GetComponent<Text> ().text = "Cannon Rate Of Fire

Cost " + Cost;
}
}
}

Thanks. And if you need the error message here it is:

Assets/Scripts/Game Scripts/UI/CannonRateOfFireUpgr.cs(39,1): error CS8025: Parsing error

You are missing a closing bracket ‘}’ at the end.

There needs to be four consecutive braces instead of three at the end.