add Ridge class
update example using new Ridge class