Added predict function and manual skeleton