GraphArea functions defected and formed a class