Initial version of the code for Ben