began hw2, fixed definition in scanner