added file
created constructor and instance in main changed while (got stuck)
fixed error in if statement