Finished implementinge If logical operator