added idea for dynamic calculation of squares