Initial version of swo demo code part 1