Fixed cmake for maximize example.
Created MaximizeMember class.