assignment3-P2-line