solving the first test