implement first menu function