initial replay implementation

 Author:    Mar Gro <gromar01@gmail.com>