solved phase 3