Completed assignment3 ,left with testing