example code from pro frontend workflow course