Code generator with solution

@Davide Liu