Added foundation

Added foundation but with some issues