solution for 03_simon