solved q5.23