creates square object with specified dimensions then calculates volume and SA