Changed constructors to avoid explicit private variables