Implements default constructor