Implement investments

(Work in progress)