Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Face-up monsters you control that were Special Summoned from the Graveyard gain 300 ATK.
--太陽の祭壇
--Temple of the Sun
local s,id=GetID()
function s.initial_effect(c)
	--Activate
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	c:RegisterEffect(e1)
	--atk up
	local e2=Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_UPDATE_ATTACK)
	e2:SetRange(LOCATION_SZONE)
	e2:SetTargetRange(LOCATION_MZONE,0)
	e2:SetTarget(s.atktg)
	e2:SetValue(300) 
	c:RegisterEffect(e2)
end
function s.atktg(e,c)
	return c:IsSpecialSummoned() and c:IsSummonLocation(LOCATION_GRAVE)
end