Original Code checkin

Functional code