Organizing codes in to small functions