Setting up foundation and devise