MBN assignment #2 code