breaking code down into smaller pieces