my_solution psuedo code to date