video 30 making a connection and if and else statement to check connection