first 4 tessed passed. Added extend function