Main as a component