lab5: fix product init