boolean horse exercise implemented