implemented Foundation as main framework