Constructor with x and y.