Basic reflection code in place -- stil buggy