Exercise "Alternate implementation of opposite directions "