adding basic galois working version