added basic Direct program, will fix indents later