The attribute statement declares a new attribute of specific type on a specific class.
This page discusses:
A type reference has the following syntax:
An attribute declaration can only refer to types that are declared before.
ATTRIBUTE MyClass.quantity : Integer;