initial code addition

Added the actual source code