Procedure definitions

Added procedure definitions. No real code yet.