Add cmake files and solution to problems 1.3 and 1.4