code review + added forgotten files for input