Initial code for swipe.