trying to solve Pepita problem