testing code - sample codes from thoughtbot :barber: