used new PyPICAM class to write main: as a simple use case