addressing major violations for loose coupling and parameter assignment and commented-out code