first version of the condition exercise