finshed second prob of hw03