Working code

Program, while minimal, works.