Constructor with params