addiding code foundation