Constructor having parameters