Added opening function

Spacing and open function