created square class