You can create functions manually or by using the Function Builder.
Creating Functions in the Function Builder.
Creating Functions Manually.