example using inherited attributes via global variables: horrible