final code project for foundations1