Added start of real object oriented system

1. Added a simple function to make an object extend another.