max circle and square extend the same abstract class