implement overall structure of script
add constants