How the Roy model of adaptation can be implemented in treating