Working on code complexity for methods