Implement Activities and its interaction

Implement Input and Output Activities and its interaction.