finish lab1
my solution to lab1