Creating a fully connected model