Fixed silly bug (assigning null to parameters while calling function instead of setting defaut arguments to the constructor)