added matrix formatting. still need user input.