solved three problem