worked on square class