Moore machines