nxt version with with working controller class