working on example code and main component