Added more sample code and added going left and right functions