completed if logical exercise