Adding initial implementation of the program logic