Switch from classes to arrays

TODO: use knockout.js