Working constructor and output