My version of the snack bar code