Fix

fixed the error for state by changing to abstract.