exploring plateau logic written with tests