Week 3 Add and Compare functions