My first try at IF writing