Implemented moving up and down