Initial version of code with a test page