Initial solution for ex1-14. WIP