Added files for problem set 6 and completed buildCode function