Migrate my code in Smart API

3 out of 3