used more methods instead of just one big brick