trying solve what_goes_up question