Trying to solve this problem