added initial source code copied from perunlabs repo