changing constructors to __construct