Commit 5: Added comments explaining code