typecasted to int in GetArea and get Perimiter