added new code

added if statements.
does not compile code between two § symbols