foundations class example