Add parser, part type checker and sample code