Added HAP reference and created class Update
Created tests for later use