Library classes for swift