checked lec3b to line.500
checked lec3b to line.550
checked lec3b to line.590