finished code, added report