Got what seems to be the first half of the code done. Will continue tomorrow.