Day 2-Created stop function