Added exec()

Added the exec() method and began to build handlers.