Maria's try on register
Compiling and semi-working version