added framework classes

added the main class and the stages