implemented a square class, almost finished