finished code, started reflection