dynamically producing menu on index page
created menu class that takes items into an array