Version 0.1 code - original submitted code