Filed in code stubs

Filled in code stubs with an actual implementation as per instructions