Implemented 'play' function