added Makefile and Abstract class for automata