Changed curly brace formatting after discussion
Deleted unecessary variables and comment.