noting for style: parantheses around the if statement is not needed. otherwise this looks great!