Rewrite the init function for this class to take an array instead of combining down below and splitting here.