BETA version of program executor. TO-DO: throw exceptions, implement some methods.