adding statement_list and moving printing to main.