created BaseClass module and started implementing lock and publish functionality.