Rearranging Tasks in Daily-life Environments with a Humanoid Robot