implemented a simple text menu