init from code lab code